import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '工单号',
    align: "center",
    sorter: true,
    dataIndex: 'workOrderMark'
  },
  {
    title: '服保网格',
    align: "center",
    dataIndex: 'guaranteedOrg'
  },
  {
    title: '工单状态',
    align: "center",
    sorter: true,
    dataIndex: 'workOrderState'
  },
  {
    title: '受理时间',
    align: "center",
    sorter: true,
    dataIndex: 'disposeTime'
  },
  {
    title: '用户地址',
    align: "center",
    dataIndex: 'userLocation'
  },
  {
    title: '受理地市',
    align: "center",
    dataIndex: 'disposeCity'
  },
  {
    title: '规则定位的机构',
    align: "center",
    dataIndex: 'gzdwjg'
  },
  {
    title: '产品类型',
    align: "center",
    dataIndex: 'productType'
  },
  {
    title: '客户等级',
    align: "center",
    sorter: true,
    dataIndex: 'userGrade'
  },
  {
    title: '障碍类别',
    align: "center",
    dataIndex: 'barrierSort'
  },
  {
    title: '留单内容',
    align: "center",
    dataIndex: 'content'
  },
  {
    title: '回单部门',
    align: "center",
    dataIndex: 'receiptOrg'
  },
  {
    title: '处理结果',
    align: "center",
    dataIndex: 'resultOfHandling'
  },
  {
    title: '障碍现象',
    align: "center",
    dataIndex: 'faultSignature'
  },
  {
    title: '处理原因',
    align: "center",
    dataIndex: 'disposeCause'
  },
  {
    title: '回单人员',
    align: "center",
    dataIndex: 'receiptStaff'
  },
  {
    title: '回单时间',
    align: "center",
    dataIndex: 'receiptTime'
  },
  {
    title: '回单历时',
    align: "center",
    dataIndex: 'receiptLs'
  },
  {
    title: '回单历时(剔除夜间时间)',
    align: "center",
    dataIndex: 'receiptLsEliminate'
  },
  {
    title: '承诺恢复时限',
    align: "center",
    dataIndex: 'promiseRecoverTime'
  },
  {
    title: '是否改约',
    align: "center",
    dataIndex: 'gyShifou'
  },
  {
    title: '改约时间',
    align: "center",
    sorter: true,
    dataIndex: 'gyTime'
  },
  {
    title: '故障修复时间',
    align: "center",
    dataIndex: 'repairTime'
  },
  {
    title: '回单超时时长',
    align: "center",
    dataIndex: 'timeoutTime'
  },
  {
    title: '重复申告次数',
    align: "center",
    dataIndex: 'repetitionFrequency'
  },
  {
    title: '回单所处环节',
    align: "center",
    dataIndex: 'placeLink'
  },
  {
    title: '局向',
    align: "center",
    dataIndex: 'jx'
  },
  {
    title: '是否越级',
    align: "center",
    dataIndex: 'sfyj'
  },
  {
    title: '回访满意度',
    align: "center",
    dataIndex: 'satisfaction'
  },
  {
    title: '不满意原因',
    align: "center",
    dataIndex: 'dissatisfiedCause'
  },
  {
    title: '是否超时',
    align: "center",
    dataIndex: 'sfcs'
  },
  {
    title: '是否考核',
    align: "center",
    dataIndex: 'sfkh'
  },
  {
    title: '维护单位',
    align: "center",
    dataIndex: 'maintainOrg'
  },
  {
    title: '用户签约速率',
    align: "center",
    dataIndex: 'userRate'
  },
  {
    title: 'AG设备IP地址',
    align: "center",
    dataIndex: 'agIp'
  },
  {
    title: 'itv账号',
    align: "center",
    dataIndex: 'itvId'
  },
  {
    title: '分公司',
    align: "center",
    dataIndex: 'filiale'
  },
  {
    title: '支局',
    align: "center",
    dataIndex: 'zj'
  },
  {
    title: '原因是否一致',
    align: "center",
    dataIndex: 'yysfyz'
  },
  {
    title: '子区域名称（县局）',
    align: "center",
    dataIndex: 'sonOrg'
  },
  {
    title: '所属小区',
    align: "center",
    dataIndex: 'shuoshuXq'
  },
  {
    title: '所属网格',
    align: "center",
    dataIndex: 'shuoshuWg'
  },
  {
    title: '营维网格',
    align: "center",
    dataIndex: 'operationWg'
  },
  {
    title: '支局网格',
    align: "center",
    dataIndex: 'zjWg'
  },
  {
    title: '分公司（资源）',
    align: "center",
    dataIndex: 'filialeZy'
  },
  {
    title: 'PON类型',
    align: "center",
    dataIndex: 'ponType'
  },
  {
    title: 'PON口上的光固话',
    align: "center",
    dataIndex: 'ponGgh'
  },
  {
    title: '光宽带数',
    align: "center",
    dataIndex: 'ghds'
  },
  {
    title: '光ITV数',
    align: "center",
    dataIndex: 'itvQuantity'
  },
  {
    title: '基础网格农村类型',
    align: "center",
    dataIndex: 'jcwgnclx'
  },
  {
    title: '客户分群',
    align: "center",
    dataIndex: 'userGroup'
  },
  {
    title: '订单号',
    align: "center",
    sorter: true,
    dataIndex: 'orderNumber'
  },
  {
    title: '客户类型',
    align: "center",
    dataIndex: 'userType'
  },
  {
    title: '路由器品牌型号',
    align: "center",
    dataIndex: 'lyqppxh'
  },
  {
    title: '609处理时长',
    align: "center",
    dataIndex: 'stnTime'
  },
  {
    title: '10000号回访时长',
    align: "center",
    dataIndex: 'tenThousandTime'
  },
  {
    title: '是否当日修',
    align: "center",
    dataIndex: 'sfdrx'
  },
  {
    title: '赔付金额',
    align: "center",
    dataIndex: 'compensation'
  },
  {
    title: '最后一次回单时间',
    align: "center",
    dataIndex: 'zhychdsj'
  },
  {
    title: '是否挂起过',
    align: "center",
    dataIndex: 'sfgqg'
  },
  {
    title: '最后一次挂起释放时间',
    align: "center",
    dataIndex: 'zhycgqsfsj'
  },
  {
    title: '回单人地市',
    align: "center",
    dataIndex: 'hdrdz'
  },
  {
    title: '产品名称',
    align: "center",
    dataIndex: 'productName'
  },
  {
    title: '外线处理历时',
    align: "center",
    dataIndex: 'wxclns'
  },
  {
    title: '农超1',
    align: "center",
    dataIndex: 'lcOne'
  },
  {
    title: '农超1',
    align: "center",
    dataIndex: 'lcTwo'
  },
  {
    title: '最后一次调度时间',
    align: "center",
    dataIndex: 'zhycddsj'
  },
  {
    title: '是否按时预约',
    align: "center",
    dataIndex: 'sfasyy'
  },
  {
    title: '用户是否评价（海东）',
    align: "center",
    dataIndex: 'yhsfpl'
  },
  {
    title: '重复派外线次数',
    align: "center",
    dataIndex: 'cfpyxcs'
  },
  {
    title: '回单网格',
    align: "center",
    dataIndex: 'hdwg'
  },
  {
    title: 'WIFI质差',
    align: "center",
    dataIndex: 'wifiQuality'
  },
  {
    title: '改约次数',
    align: "center",
    dataIndex: 'gycs'
  },
  {
    title: '服务类型',
    align: "center",
    dataIndex: 'typeOfService'
  },
  {
    title: '障碍原因',
    align: "center",
    dataIndex: 'snagsCauses'
  },
  {
    title: '预定位障碍原因',
    align: "center",
    dataIndex: 'ydwzayy'
  },
  {
    title: '障碍原因是否一致',
    align: "center",
    dataIndex: 'zayysfyz'
  },
  {
    title: 'OLT_IP',
    align: "center",
    dataIndex: 'oltIp'
  },
  {
    title: '预约时间',
    align: "center",
    sorter: true,
    dataIndex: 'appointmentTime'
  },
  {
    title: '签到成功时间',
    align: "center",
    sorter: true,
    dataIndex: 'qdcgsj'
  },
  {
    title: '是否履约',
    align: "center",
    dataIndex: 'sfly'
  },
  {
    title: '经度',
    align: "center",
    dataIndex: 'longitude'
  },
  {
    title: '纬度',
    align: "center",
    dataIndex: 'latitude'
  },
  {
    title: 'LOID',
    align: "center",
    dataIndex: 'loid'
  },
  {
    title: '故障地址',
    align: "center",
    dataIndex: 'gzdz'
  },
  {
    title: '工单历时（海东）',
    align: "center",
    dataIndex: 'gdls'
  },
  {
    title: '派单一小时后催单导致未履约',
    align: "center",
    dataIndex: 'ygxshcddzwly'
  },
  {
    title: '政企承诺恢复时限',
    align: "center",
    dataIndex: 'zqclhfsx'
  },
  {
    title: '政企回单历时(剔除夜间时间)',
    align: "center",
    dataIndex: 'zqhdlxtcysj'
  },
  {
    title: '政企是否履约',
    align: "center",
    dataIndex: 'zqsfly'
  },
  {
    title: '宽带账号',
    align: "center",
    dataIndex: 'broadBandPassword'
  },
  {
    title: '系统自动预判结果',
    align: "center",
    dataIndex: 'xtzdpdjg'
  },
  {
    title: '故障产品',
    align: "center",
    dataIndex: 'faultyItem'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '工单号',
    field: 'workOrderMark',
    component: 'Input',
  },
  {
    label: '服保网格',
    field: 'guaranteedOrg',
    component: 'Input',
  },
  {
    label: '工单状态',
    field: 'workOrderState',
    component: 'Input',
  },
  {
    label: '受理时间',
    field: 'disposeTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '用户地址',
    field: 'userLocation',
    component: 'Input',
  },
  {
    label: '受理地市',
    field: 'disposeCity',
    component: 'Input',
  },
  {
    label: '规则定位的机构',
    field: 'gzdwjg',
    component: 'Input',
  },
  {
    label: '产品类型',
    field: 'productType',
    component: 'Input',
  },
  {
    label: '客户等级',
    field: 'userGrade',
    component: 'Input',
  },
  {
    label: '障碍类别',
    field: 'barrierSort',
    component: 'Input',
  },
  {
    label: '留单内容',
    field: 'content',
    component: 'Input',
  },
  {
    label: '回单部门',
    field: 'receiptOrg',
    component: 'Input',
  },
  {
    label: '处理结果',
    field: 'resultOfHandling',
    component: 'Input',
  },
  {
    label: '障碍现象',
    field: 'faultSignature',
    component: 'Input',
  },
  {
    label: '处理原因',
    field: 'disposeCause',
    component: 'Input',
  },
  {
    label: '回单人员',
    field: 'receiptStaff',
    component: 'Input',
  },
  {
    label: '回单时间',
    field: 'receiptTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '回单历时',
    field: 'receiptLs',
    component: 'Input',
  },
  {
    label: '回单历时(剔除夜间时间)',
    field: 'receiptLsEliminate',
    component: 'Input',
  },
  {
    label: '承诺恢复时限',
    field: 'promiseRecoverTime',
    component: 'Input',
  },
  {
    label: '是否改约',
    field: 'gyShifou',
    component: 'Input',
  },
  {
    label: '改约时间',
    field: 'gyTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '故障修复时间',
    field: 'repairTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '回单超时时长',
    field: 'timeoutTime',
    component: 'Input',
  },
  {
    label: '重复申告次数',
    field: 'repetitionFrequency',
    component: 'Input',
  },
  {
    label: '回单所处环节',
    field: 'placeLink',
    component: 'Input',
  },
  {
    label: '局向',
    field: 'jx',
    component: 'Input',
  },
  {
    label: '是否越级',
    field: 'sfyj',
    component: 'Input',
  },
  {
    label: '回访满意度',
    field: 'satisfaction',
    component: 'Input',
  },
  {
    label: '不满意原因',
    field: 'dissatisfiedCause',
    component: 'Input',
  },
  {
    label: '是否超时',
    field: 'sfcs',
    component: 'Input',
  },
  {
    label: '是否考核',
    field: 'sfkh',
    component: 'Input',
  },
  {
    label: '维护单位',
    field: 'maintainOrg',
    component: 'Input',
  },
  {
    label: '用户签约速率',
    field: 'userRate',
    component: 'Input',
  },
  {
    label: 'AG设备IP地址',
    field: 'agIp',
    component: 'Input',
  },
  {
    label: 'itv账号',
    field: 'itvId',
    component: 'Input',
  },
  {
    label: '分公司',
    field: 'filiale',
    component: 'Input',
  },
  {
    label: '支局',
    field: 'zj',
    component: 'Input',
  },
  {
    label: '原因是否一致',
    field: 'yysfyz',
    component: 'Input',
  },
  {
    label: '子区域名称（县局）',
    field: 'sonOrg',
    component: 'Input',
  },
  {
    label: '所属小区',
    field: 'shuoshuXq',
    component: 'Input',
  },
  {
    label: '所属网格',
    field: 'shuoshuWg',
    component: 'Input',
  },
  {
    label: '营维网格',
    field: 'operationWg',
    component: 'Input',
  },
  {
    label: '支局网格',
    field: 'zjWg',
    component: 'Input',
  },
  {
    label: '分公司（资源）',
    field: 'filialeZy',
    component: 'Input',
  },
  {
    label: 'PON类型',
    field: 'ponType',
    component: 'Input',
  },
  {
    label: 'PON口上的光固话',
    field: 'ponGgh',
    component: 'Input',
  },
  {
    label: '光宽带数',
    field: 'ghds',
    component: 'Input',
  },
  {
    label: '光ITV数',
    field: 'itvQuantity',
    component: 'Input',
  },
  {
    label: '基础网格农村类型',
    field: 'jcwgnclx',
    component: 'Input',
  },
  {
    label: '客户分群',
    field: 'userGroup',
    component: 'Input',
  },
  {
    label: '订单号',
    field: 'orderNumber',
    component: 'Input',
  },
  {
    label: '客户类型',
    field: 'userType',
    component: 'Input',
  },
  {
    label: '路由器品牌型号',
    field: 'lyqppxh',
    component: 'Input',
  },
  {
    label: '609处理时长',
    field: 'stnTime',
    component: 'Input',
  },
  {
    label: '10000号回访时长',
    field: 'tenThousandTime',
    component: 'Input',
  },
  {
    label: '是否当日修',
    field: 'sfdrx',
    component: 'Input',
  },
  {
    label: '赔付金额',
    field: 'compensation',
    component: 'Input',
  },
  {
    label: '最后一次回单时间',
    field: 'zhychdsj',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '是否挂起过',
    field: 'sfgqg',
    component: 'Input',
  },
  {
    label: '最后一次挂起释放时间',
    field: 'zhycgqsfsj',
    component: 'Input',
  },
  {
    label: '回单人地市',
    field: 'hdrdz',
    component: 'Input',
  },
  {
    label: '产品名称',
    field: 'productName',
    component: 'Input',
  },
  {
    label: '外线处理历时',
    field: 'wxclns',
    component: 'Input',
  },
  {
    label: '农超1',
    field: 'lcOne',
    component: 'Input',
  },
  {
    label: '农超1',
    field: 'lcTwo',
    component: 'Input',
  },
  {
    label: '最后一次调度时间',
    field: 'zhycddsj',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '是否按时预约',
    field: 'sfasyy',
    component: 'Input',
  },
  {
    label: '用户是否评价（海东）',
    field: 'yhsfpl',
    component: 'Input',
  },
  {
    label: '重复派外线次数',
    field: 'cfpyxcs',
    component: 'Input',
  },
  {
    label: '回单网格',
    field: 'hdwg',
    component: 'Input',
  },
  {
    label: 'WIFI质差',
    field: 'wifiQuality',
    component: 'Input',
  },
  {
    label: '改约次数',
    field: 'gycs',
    component: 'Input',
  },
  {
    label: '服务类型',
    field: 'typeOfService',
    component: 'Input',
  },
  {
    label: '障碍原因',
    field: 'snagsCauses',
    component: 'Input',
  },
  {
    label: '预定位障碍原因',
    field: 'ydwzayy',
    component: 'Input',
  },
  {
    label: '障碍原因是否一致',
    field: 'zayysfyz',
    component: 'Input',
  },
  {
    label: 'OLT_IP',
    field: 'oltIp',
    component: 'Input',
  },
  {
    label: '预约时间',
    field: 'appointmentTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '签到成功时间',
    field: 'qdcgsj',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss'
    },
  },
  {
    label: '是否履约',
    field: 'sfly',
    component: 'Input',
  },
  {
    label: '经度',
    field: 'longitude',
    component: 'Input',
  },
  {
    label: '纬度',
    field: 'latitude',
    component: 'Input',
  },
  {
    label: 'LOID',
    field: 'loid',
    component: 'Input',
  },
  {
    label: '故障地址',
    field: 'gzdz',
    component: 'Input',
  },
  {
    label: '工单历时（海东）',
    field: 'gdls',
    component: 'Input',
  },
  {
    label: '派单一小时后催单导致未履约',
    field: 'ygxshcddzwly',
    component: 'Input',
  },
  {
    label: '政企承诺恢复时限',
    field: 'zqclhfsx',
    component: 'Input',
  },
  {
    label: '政企回单历时(剔除夜间时间)',
    field: 'zqhdlxtcysj',
    component: 'Input',
  },
  {
    label: '政企是否履约',
    field: 'zqsfly',
    component: 'Input',
  },
  {
    label: '宽带账号',
    field: 'broadBandPassword',
    component: 'Input',
  },
  {
    label: '系统自动预判结果',
    field: 'xtzdpdjg',
    component: 'Input',
  },
  {
    label: '故障产品',
    field: 'faultyItem',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
